Fix some print format warnings
authorРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 13 Aug 2014 18:17:23 +0000 (18:17 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 13 Aug 2014 23:40:59 +0000 (23:40 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=734736

gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkevents-win32.c
gtk/gtkmountoperation-stub.c
gtk/gtkmountoperation.c

index 4976e773120993d0da10fb3f5cb066458e0cbbbd..694d22ca6e612444d8b51f3af54790f09a636b0c 100644 (file)
@@ -424,7 +424,7 @@ _clipboard_window_procedure (HWND   hwnd,
   retval = inner_clipboard_window_procedure (hwnd, message, wparam, lparam);
   debug_indent -= 2;
 
-  GDK_NOTE (EVENTS, g_print (" => %I64d%s", (gint64) retval, (debug_indent == 0 ? "\n" : "")));
+  GDK_NOTE (EVENTS, g_print (" => %" G_GINT64_FORMAT "%s", (gint64) retval, (debug_indent == 0 ? "\n" : "")));
 
   return retval;
 }
index bb2af328a3c162de15979b1d8ee16a54e8cdfadb..af40acfc435d2148efffe94d46f15d774ce15453 100644 (file)
@@ -287,7 +287,7 @@ _gdk_win32_window_procedure (HWND   hwnd,
   retval = inner_window_procedure (hwnd, message, wparam, lparam);
   debug_indent -= 2;
 
-  GDK_NOTE (EVENTS, g_print (" => %I64d%s", (gint64) retval, (debug_indent == 0 ? "\n" : "")));
+  GDK_NOTE (EVENTS, g_print (" => %" G_GINT64_FORMAT "%s", (gint64) retval, (debug_indent == 0 ? "\n" : "")));
 
   return retval;
 }
@@ -3268,7 +3268,7 @@ gdk_event_translate (MSG  *msg,
       break;
 
     case WM_ACTIVATEAPP:
-      GDK_NOTE (EVENTS, g_print (" %s thread: %I64d",
+      GDK_NOTE (EVENTS, g_print (" %s thread: %" G_GINT64_FORMAT,
                                 msg->wParam ? "YES" : "NO",
                                 (gint64) msg->lParam));
       if (msg->wParam && GDK_WINDOW_IS_MAPPED (window))
index 3811f0bf01f658cc452a8d7549f3d4de97600acb..7307052c0a44b504487e3ee79f11e074c1d02384 100644 (file)
@@ -60,7 +60,7 @@ _gtk_mount_operation_kill_process (GPid      pid,
                G_IO_ERROR,
                G_IO_ERROR_NOT_SUPPORTED,
                _("Cannot kill process with PID %d. Operation is not implemented."),
-               pid);
+               (int) pid);
   return FALSE;
 }
 
index 0ac9c2a7aab5ce4db9c675299fa2469082d84c34..89a0882f6048259df23c3c7759ee773f71f40d9f 100644 (file)
@@ -1088,7 +1088,7 @@ add_pid_to_process_list_store (GtkMountOperation              *mount_operation,
                                     &pixbuf);
 
   if (name == NULL)
-    name = g_strdup_printf (_("Unknown Application (PID %d)"), pid);
+    name = g_strdup_printf (_("Unknown Application (PID %d)"), (int) pid);
 
   if (command_line == NULL)
     command_line = g_strdup ("");